<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::group([],function () {
	Route::get('/admin', 'admin\IndexController@index');

	Route::get('/admin/welcome', 'admin\WelcomeController@index');

	Route::any('admin/login', 'admin\LoginController@index');

	Route::any('admin/login/login', 'admin\LoginController@login');

	Route::any('/admin/member/getData', 'admin\MemberController@getData');

	Route::any('/admin/member', 'admin\MemberController@index');

	Route::any('/admin/admin', 'admin\AdminController@index');

	Route::any('/admin/getData', 'admin\adminController@getData');

	Route::get('/admin/options/clearCache', 'admin\OptionsController@clearCache');

	Route::any('/login', 'auth\LoginController@index');
})->middleware('check');


/*Route::middleware(['prefix' => 'admin', 'middleware' => 'authority'])->group(function () {
    Route::get('/', function () {
        return view('admin\IndexController@index');
    });

    Route::get('', function () {
    	return view('welcome');
    });
});*/





